home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98c.txt / 000135_icon-group-sender _Wed Dec 16 17:44:18 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id RAA24499
  4.     for icon-group-addresses; Wed, 16 Dec 1998 17:44:13 -0700 (MST)
  5. Message-Id: <199812170044.RAA24499@baskerville.CS.Arizona.EDU>
  6. Date: Wed, 16 Dec 1998 15:05:06 -0600
  7. From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
  8. To: thrnsoft@globalsite.net
  9. CC: icon-group@optima.CS.Arizona.EDU
  10. Subject: Re: Windows ICON
  11. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  12. Status: RO
  13.  
  14.  
  15.    [Robert Thornbury wrote:]
  16.    I have a question about ICON for Windows, version 9.3:  When you write to
  17.    standard output you get the console window.  How is this control (size,
  18.    scrolling, etc.) and is it possible to control this within the program
  19.    you're writing.
  20.  
  21. The "console" windows in the present implementation are pretty sad.  They
  22. are, however, regular Icon "window" values in the sense that you should be
  23. able to manipulate their attributes the same as other windows open for
  24. graphics.  This allows control of some features trivially, such as size,
  25. position, font used, etc.  What everyone wants, though, is a scrollbar for
  26. this window, and that takes a little more work.
  27.  
  28. The easiest way to do it is to overload the write()/writes() functions with
  29. library functions that store output to a list along with writing it to the
  30. console, and then install native Windows scrollbars and process their events
  31. to redraw the display from the list contents.  I guess I should write this
  32. up as an example and add it to the documentation; you might try it and
  33. see for yourself, in the meantime.
  34.  
  35. Clint Jeffery, jeffery@cs.utsa.edu
  36. Division of Computer Science, The University of Texas at San Antonio
  37. Research http://www.cs.utsa.edu/research/plss.html
  38. Will Hack For Food!
  39.